package com.lottery.ruok.lottrey.retrofitModule.request;

import com.lottery.ruok.lottrey.retrofitModule.BaseModel;
import com.lottery.ruok.lottrey.retrofitModule.response.ModifyProfileResponse;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by ASUS on 2017/8/9.
 */

public interface ModifyProfileRequest {
//    username用户名//    nickname昵称//    avatar头像//    birthday生日//    weixin//    qq
//    mobile_phone手机号
//    e164 国际手机号
//    email 邮箱
//    address 地址
//    security_question安全问题
//            verify_password
//    withdraw_type提现类型[银行卡，支付宝，微信，财付通，第三方](选择银行卡时需要填 withdraw_bankname, withdraw_subbank, withdraw_realname'
//    withdraw_account提现账号
//    withdraw_password[选填,填入则修改]提款密码
//            withdraw_bankname提款银行
//    withdraw_subbank 分行
//    withdraw_realname真实姓名
//            withdraw_detail提现备注
    @FormUrlEncoded
    @POST("modify_profile")
    Observable<BaseModel<ModifyProfileResponse>> getResult(@Query("token") String token,
                                                          @Field("nickname") String nickname,
                                                          @Field("avatar") String avatar,
                                                          @Field("birthday") String birthday,
                                                          @Field("weixin") String weixin,
                                                          @Field("qq") String qq,
                                                          @Field("mobile_phone") String mobile_phone,
                                                          @Field("e164") String e164,
                                                          @Field("email") String email,
                                                          @Field("address") String address,
                                                          @Field("security_question") String security_question,
                                                          @Field("security_answer") String security_answer,
                                                          @Field("withdraw_type") String withdraw_type,
                                                          @Field("withdraw_account") String withdraw_account,
                                                          @Field("withdraw_password") String withdraw_password,
                                                          @Field("withdraw_bankname") String withdraw_bankname,
                                                          @Field("withdraw_subbank") String withdraw_subbank,
                                                          @Field("withdraw_realname") String withdraw_realname,
                                                          @Field("withdraw_detail") String withdraw_detail,
                                                          @Field("verify_password") String verify_password);
}
